from django.shortcuts import render
from django.views import View


from organization.models import Teacher

# 首页中授课教师的跳转页面
class TeacherListView(View):
    def get(self,request):

        all_teacher = Teacher.objects.all()
        return render(request,'teachers-list.html',{"all_teacher":all_teacher})
# 首页中授课学校的跳转页面
class OrgListView(View):
    def get(self,request):
        return render(request,'org-list.html')